// 类型约束
type Option = {
    test: string;
    user: {
        regsiter: string;
        login: string;
        uploadImg?: string;
        saveImg?: string;
        deleteImg?: string;
        getAvatorNickName?: string;
        sendCode?: string;
        look: string;
        modName: string;
    };
    banner: {
        bannerlist?: string;
    };
    data: {
        navlist?: string;
        lists?: string;
    };
    goods: {
        goodslist: string;
    };
    detail: {
        detaildata: string;
    };
    cart: {
        addcart: string;
        updatecart: string;
        getcart: string;
        removecart: string;
    };
    search: {
        searchlist: string;
    };
    address: {
        getaddress: string;
        editaddress: string;
        removeaddress: string;
        getaddr: string;
    };
    order: {
        addorder: string;
        getorder: string;
        removeorder: string;
    };
    like: {
        addlike: string;
        notlike: string;
        getlike: string;
        getlikelist: string;
    };
};
// 导出接口列表
export const api: Option = {
    test: "/test",
    user: {
        regsiter: "/user/register",
        login: "/user/login",
        getAvatorNickName: "/user/get_avator_nickname",
        uploadImg: "/user/upload_img",
        saveImg: "/user/save_img",
        deleteImg: "/user/delete_img",
        sendCode: "/user/send_code",
        look: "/user/look",
        modName: "/user/username",
    },
    banner: {
        bannerlist: "/banner/bannerlist",
    },
    data: {
        navlist: "/data/navlist",
        lists: "/data/lists",
    },
    goods: {
        goodslist: "/goods/goodslist",
    },
    detail: {
        detaildata: "/detail/goodsdetail",
    },
    cart: {
        addcart: "/cart/addcart",
        updatecart: "/cart/updatecart",
        getcart: "/cart/getcart",
        removecart: "/cart/removecart",
    },
    search: {
        searchlist: "/search/searchlist",
    },
    address: {
        getaddress: "/address/getaddress",
        editaddress: "/address/editaddress",
        removeaddress: "/address/removeaddress",
        getaddr: "/address/getaddr",
    },
    order: {
        addorder: "/order/addorder",
        getorder: "/order/myorder",
        removeorder: "/order/removeorder",
    },
    like: {
        addlike: "/like/addlike",
        notlike: "/like/notlike",
        getlike: "/like/getlike",
        getlikelist: "/like/getlikelist",
    },
};
